package com.mc.common.exception;

public class RedisException extends Exception {
	private static final long serialVersionUID = 1L;

	private int errorCode = 500;

	public RedisException(int errorCode) {
		super();
		setErrorCode(errorCode);
	}

	public RedisException(String message) {
		super(message);
	}

	public RedisException(int errorCode, String message) {
		super(message);
		setErrorCode(errorCode);
	}

	public RedisException(String message, Throwable cause) {
		super(message, cause);
	}

	public RedisException(int errorCode, String message, Throwable cause) {
		super(message, cause);

		setErrorCode(errorCode);
	}

	public RedisException(Throwable cause) {
		super(cause);
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}
